package com.qidian.mes.log.pojo;

import java.util.Date;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/10/26 9:32
 * @Description
 */
public class OptionLog {
    private Long logId;
    private Long userId;
    private Date optionTime;
    private Long optionTimeMillis;
    private String optionModule;
    private String optionType;
    private String requestMethod;
    private String requestParam;
    private String requestResult;
    private String requestPath;
    private String requestAddress;

    @Override
    public String toString() {
        return "OptionLog{" +
                "logId=" + logId +
                ", userId=" + userId +
                ", optionTime=" + optionTime +
                ", optionTimeMillis=" + optionTimeMillis +
                ", optionModule='" + optionModule + '\'' +
                ", optionType='" + optionType + '\'' +
                ", requestMethod='" + requestMethod + '\'' +
                ", requestParam='" + requestParam + '\'' +
                ", requestResult='" + requestResult + '\'' +
                ", requestPath='" + requestPath + '\'' +
                ", requestAddress='" + requestAddress + '\'' +
                '}';
    }

    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getOptionTime() {
        return optionTime;
    }

    public void setOptionTime(Date optionTime) {
        this.optionTime = optionTime;
    }

    public Long getOptionTimeMillis() {
        if (this.optionTime != null){
            return this.optionTime.getTime();
        }
        return null;
    }

    public void setOptionTimeMillis(Long optionTimeMillis) {
        this.optionTimeMillis = optionTimeMillis;
    }

    public String getOptionModule() {
        return optionModule;
    }

    public void setOptionModule(String optionModule) {
        this.optionModule = optionModule;
    }

    public String getOptionType() {
        return optionType;
    }

    public void setOptionType(String optionType) {
        this.optionType = optionType;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getRequestResult() {
        return requestResult;
    }

    public void setRequestResult(String requestResult) {
        this.requestResult = requestResult;
    }

    public String getRequestPath() {
        return requestPath;
    }

    public void setRequestPath(String requestPath) {
        this.requestPath = requestPath;
    }

    public String getRequestAddress() {
        return requestAddress;
    }

    public void setRequestAddress(String requestAddress) {
        this.requestAddress = requestAddress;
    }
}
